package cn.kgc.ubagnet.pojo;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class SecurityBuyer extends User {
    private Buyer originalAdmin;
    public SecurityBuyer(Buyer originalAdmin, Collection<? extends GrantedAuthority> authorities) {
        super(originalAdmin.getPhone(), originalAdmin.getPassword(), authorities);
        this.originalAdmin=originalAdmin;
    }

    public Buyer getOriginalAdmin() {
        return originalAdmin;
    }


}
